package com.t114514.demo.mapper;

import com.t114514.demo.pojo.Result;
import com.t114514.demo.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where userAccount = #{userAccount}")
    User selectUser(String userAccount);

    @Insert("insert into user(userAccount, password) values(#{userAccount}, #{hashedPassword})")
    void insertUser(String userAccount, String hashedPassword);
}
